package com.frejoys.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

// app升级版本
@Data
// @EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("app_version")
public class AppVersion implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 版本号
    private Float version;

    // 下载地址
    private String address;

    // 类型：1.ios，2.android
    private Integer type;

    // 类别：0.正常升级，1.强制升级
    private Integer upgradeType;

    // 升级开始时间
    private Integer upgradeTime;

    // 创建时间
    private Integer createTime;

}
